package cn.wolfcode.mp.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Setter
@Getter
@ToString

@TableName(value = "employee") //指定当前实体类映射哪张数据库表， 默认是跟实体类名一致
public class Employee_bak {
    @TableId(value = "id",type = IdType.AUTO) //主键自增长.标记当前属性映射表主键。
    private Long id;
    @TableField(value = "name",exist = false) // 指定当前属性映射数据库表哪一列， 默认是跟属性名一致 ,exist=false 表示该属性不与表中列进行映射
    private String name;
    private String password;
    private String email;
    private int age;
    private int admin;
    private Long deptId;

}
